package com.wkbb.sports.mapper;

import com.wkbb.common.base.BaseMapper;
import com.wkbb.sports.dto.LatelStuSportDto;
import com.wkbb.sports.dto.StuSportStatisticsDto;
import com.wkbb.sports.model.HlifeSportLevel;
import com.wkbb.sports.model.HlifeStudentPractice;
import com.wkbb.sports.model.HlifeSportLevelStu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author lbh
 * @date 2021年03月29日 17:58:34
 * @description:
 */
@Repository
public interface HlifeStudentPracticeMapper extends BaseMapper<HlifeStudentPractice> {

    void insertBatch1(@Param("hlifeStudentPracticeList") List<HlifeStudentPractice> hlifeWorkStudentList);

    HlifeStudentPractice selectByPrimaryKey(@Param("id") Long id);

    StuSportStatisticsDto getStuSportStatistics(@Param("studentId") Long studentId, @Param("projectKind") Byte projectKind, @Param("date") String date);
    StuSportStatisticsDto getStuHomeSportStatistics(@Param("studentId") Long studentId, @Param("projectKind") Byte projectKind, @Param("today") String today);

    List<LatelStuSportDto> getLatelyStuSport(Map<String, Object> params);
}